package cn.cloudreal.cbms.vo;

/**
 * 数据字典信息
 * 
 * @author Gao_xuejiao
 */
public class Dictionary
{
    private int id;// 自增id
    private String classcode; // 分类编号
    private String classname;// 分类名称
    private String datavalue;// 项目值,用于备注
    private int parentId;// 父节点
    private String extAttr1;// 属性1
    private String extAttr2;// 属性2
    private String extAttr3;// 属性3
    private String extAttr4;// 属性4
    private String extAttr5;// 属性5
    private String parentName; // 父节点名称
    private String extAttr2_01; // TODO:用于根据extAttr2排序,怎么理解
    private String orderBy;

    public Dictionary()
    {
    }

    public Dictionary(int id,
            String classcode,
            String classname,
            String datavalue,
            int parentid,
            String extAttr1,
            String extAttr2,
            String extAttr3,
            String extAttr4,
            String extAttr5,
            String parentName)
    {
        this.id = id;
        this.classcode = classcode;
        this.classname = classname;
        this.datavalue = datavalue;
        this.parentId = parentid;
        this.extAttr1 = extAttr1;
        this.extAttr2 = extAttr2;
        this.extAttr3 = extAttr3;
        this.extAttr4 = extAttr4;
        this.extAttr5 = extAttr5;
        this.parentName = parentName;
    }

    public String getParentName()
    {
        return parentName;
    }

    public void setParentName(String parentName)
    {
        this.parentName = parentName;
    }

    public String getExtAttr1()
    {
        return extAttr1;
    }

    public void setExtAttr1(String extAttr1)
    {
        this.extAttr1 = extAttr1;
    }

    public String getExtAttr2()
    {
        return extAttr2;
    }

    public void setExtAttr2(String extAttr2)
    {
        this.extAttr2 = extAttr2;
    }

    public String getExtAttr3()
    {
        return extAttr3;
    }

    public void setExtAttr3(String extAttr3)
    {
        this.extAttr3 = extAttr3;
    }

    public String getExtAttr4()
    {
        return extAttr4;
    }

    public void setExtAttr4(String extAttr4)
    {
        this.extAttr4 = extAttr4;
    }

    public String getExtAttr5()
    {
        return extAttr5;
    }

    public void setExtAttr5(String extAttr5)
    {
        this.extAttr5 = extAttr5;
    }

    public int getId()
    {
        return id;
    }

    public void setId(int id)
    {
        this.id = id;
    }

    public String getClasscode()
    {
        return classcode;
    }

    public void setClasscode(String classcode)
    {
        this.classcode = classcode;
    }

    public String getClassname()
    {
        return classname;
    }

    public void setClassname(String classname)
    {
        this.classname = classname;
    }

    public String getDatavalue()
    {
        return datavalue;
    }

    public void setDatavalue(String datavalue)
    {
        this.datavalue = datavalue;
    }

    public int getParentId()
    {
        return parentId;
    }

    public void setParentId(int parentid)
    {
        this.parentId = parentid;
    }

    public String getExtAttr2_01()
    {
        return extAttr2_01;
    }

    public void setExtAttr2_01(String extAttr2_01)
    {
        this.extAttr2_01 = extAttr2_01;
    }

    public String getOrderBy()
    {
        return orderBy;
    }

    public void setOrderBy(String orderBy)
    {
        this.orderBy = orderBy;
    }

    @Override
    public String toString() {
    	return "id="+this.id+" parentId="+this.parentId+" classcode="+this.classcode+" classname="+this.classname+" datavalue="+this.datavalue+" extAttr2_01="+this.extAttr2_01;
    }
}
